rolesystem.roles.auction
Class Bidder

java.lang.Object
  extended by rolesystem.roles.auction.Bidder

public abstract class Bidder
extends java.lang.Object

This role is the bidder of an auction. Keywords: auction, bidder.


Field Summary
static KnownEvent KE_auctionOver
          An auctioneer notifies that the auction is over.
static KnownEvent KE_giveGood
          An auctioneer gives a good.
static KnownEvent KE_notifyGood
          An auctioneer notifies the good on sale.
static KnownEvent KE_notifyKind
          An auctioneer notifies the kind of the auction.
static KnownEvent KE_notifySituation
          An auctioneer notifies the current situation of the auction.
static KnownEvent KE_talk
          Another bidder talks.
static KnownEvent KE_youWon
          An auctioneer notifies that I have won the auction and thus I must pay.
static java.lang.String ROLE_ID
          Role identifier.
 
Constructor Summary
Bidder()
           
 
Method Summary
static RoleAction askGood(int addressee)
          Asks the description of the good on sale.
static RoleAction askKind(int addressee)
          Asks the kind of the auction (English, Dutch...).
static RoleAction askSituation(int addressee)
          Asks the current situation of the auction.
static RoleAction bid(int addressee, Price content)
          Makes a bid.
static RoleAction pay(int addressee, Money content)
          Pays.
static RoleAction talk(int addressee, java.lang.String content)
          Talks.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROLE_ID

public static final java.lang.String ROLE_ID
Role identifier.

See Also:
Constant Field Values

KE_notifyKind

public static final KnownEvent KE_notifyKind
An auctioneer notifies the kind of the auction. Sender role: Auctioneer Content: Kind of the auction (English, Dutch...).


KE_notifyGood

public static final KnownEvent KE_notifyGood
An auctioneer notifies the good on sale. Sender role: Auctioneer Content: Description of the good on sale.


KE_notifySituation

public static final KnownEvent KE_notifySituation
An auctioneer notifies the current situation of the auction. Sender role: Auctioneer Content: Situation of the auction, i.e. proposed price, winning bidder and countdown state.


KE_auctionOver

public static final KnownEvent KE_auctionOver
An auctioneer notifies that the auction is over. Sender role: Auctioneer


KE_youWon

public static final KnownEvent KE_youWon
An auctioneer notifies that I have won the auction and thus I must pay. Sender role: Auctioneer Content: Price that must be paid.


KE_giveGood

public static final KnownEvent KE_giveGood
An auctioneer gives a good. Sender role: Auctioneer Content: Good.


KE_talk

public static final KnownEvent KE_talk
Another bidder talks. Sender role: Bidder Content: Message.

Constructor Detail

Bidder

public Bidder()
Method Detail

askKind

public static RoleAction askKind(int addressee)
Asks the kind of the auction (English, Dutch...).

Parameters:
addressee - Auctioneer

askGood

public static RoleAction askGood(int addressee)
Asks the description of the good on sale.

Parameters:
addressee - Auctioneer

askSituation

public static RoleAction askSituation(int addressee)
Asks the current situation of the auction.

Parameters:
addressee - Auctioneer

bid

public static RoleAction bid(int addressee,
                             Price content)
Makes a bid.

Parameters:
addressee - Auctioneer
content - Bid.

pay

public static RoleAction pay(int addressee,
                             Money content)
Pays.

Parameters:
addressee - Auctioneer
content - Payment.

talk

public static RoleAction talk(int addressee,
                              java.lang.String content)
Talks.

Parameters:
addressee - Bidder
content - Message.